package com.itheima.edu.info.manager.controller;

import com.itheima.edu.info.manager.domain.Student;
import com.itheima.edu.info.manager.service.StudentService;

import java.util.Scanner;

public class OtherStudentController extends BaseStudentController{
    //开始学生管理系统，并展示学生管理系统菜单

    private Scanner sc = new Scanner(System.in);
    @Override
    //2.把学生信息封装为学生对象
    //开闭原则：对扩展内容开发，对修改内容关闭
    public Student inputStudentInfo(String id){
        System.out.println("请输入学生姓名:");
        String name = sc.next();
        System.out.println("请输入学生年龄:");
        int age = sc.nextInt();
        System.out.println("请输入学生生日:");
        String birthday = sc.next();
        Student stu = new Student(id,name,age,birthday);
        return stu;
    }
}


